/* Spark创作面板样式 */

.spark-creation-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.spark-panel-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.spark-panel-card .ant-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 头部样式 */
.spark-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.spark-icon {
  color: #ff6b35;
  font-size: 16px;
}

.close-button {
  margin-left: auto;
}

/* 进度条样式 */
.spark-progress {
  margin-bottom: 16px;
}

.spark-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

.current-step {
  font-weight: 500;
}

.section-progress {
  color: #999;
}

/* 标签栏样式 */
.spark-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.spark-tabs .ant-btn {
  border-radius: 6px;
}

/* 内容区域样式 */
.spark-content {
  flex: 1;
  overflow-y: auto;
  min-height: 400px;
}

/* 操作栏样式 */
.spark-actions {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* 火花输入样式 */
.spark-input-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spark-input-examples {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.spark-input-examples h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #333;
}

.spark-input-examples ul {
  margin: 0;
  padding-left: 16px;
}

.spark-input-examples li {
  margin-bottom: 4px;
  font-size: 13px;
  color: #666;
}

.spark-input-textarea {
  min-height: 120px !important;
  resize: vertical;
}

/* 对话界面样式 */
.dialog-interface {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dialog-question {
  background: #f0f9ff;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #1890ff;
}

.dialog-question h3 {
  margin: 0 0 8px 0;
  color: #1890ff;
  font-size: 16px;
}

.dialog-question p {
  margin: 0;
  color: #333;
  line-height: 1.5;
}

.dialog-help-text {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

.dialog-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dialog-response-area {
  margin-top: 8px;
}

.dialog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

/* 大纲编辑器样式 */
.outline-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.outline-title-input {
  font-size: 18px;
  font-weight: 600;
}

.outline-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.outline-section {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  transition: all 0.2s;
}

.outline-section:hover {
  border-color: #1890ff;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
}

.outline-section.generating {
  border-color: #52c41a;
  background: #f6ffed;
}

.outline-section.completed {
  border-color: #52c41a;
  background: #f6ffed;
}

.outline-section.error {
  border-color: #ff4d4f;
  background: #fff2f0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-title {
  font-weight: 600;
  color: #333;
}

.section-type-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #666;
}

.section-description {
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}

.section-key-points {
  margin-bottom: 12px;
}

.section-key-points h5 {
  margin: 0 0 4px 0;
  font-size: 13px;
  color: #333;
}

.key-points-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.key-point-tag {
  font-size: 12px;
}

.section-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.section-length {
  color: #999;
  font-size: 12px;
}

/* 内容生成器样式 */
.content-generator {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.generator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.generator-stats {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-weight: 600;
  font-size: 18px;
  color: #1890ff;
}

.stat-label {
  color: #666;
  font-size: 12px;
}

.generator-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.generator-section {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}

.generator-section-header {
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.generator-section-content {
  padding: 16px;
  background: #fff;
}

.section-content-preview {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  max-height: 200px;
  overflow-y: auto;
}

.section-content-empty {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 24px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .spark-tabs {
    flex-wrap: wrap;
  }
  
  .spark-tabs .ant-btn {
    flex: 1;
    min-width: 0;
  }
  
  .dialog-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .outline-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .generator-stats {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* 加载状态样式 */
.ant-spin-container {
  min-height: 200px;
}

/* 自定义滚动条 */
.spark-content::-webkit-scrollbar {
  width: 6px;
}

.spark-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.spark-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.spark-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}